﻿<Window x:Class="Tech4WPF_TestApp.GaugeControlTest"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:gc="clr-namespace:Tech4WPF.GaugeControl;assembly=Tech4WPF"
        Title="Tech4WPF GaugeControlTest" Height="521" Width="599">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1.3*" />
            <ColumnDefinition Width="2*" />
        </Grid.ColumnDefinitions>
        <Grid Grid.Column="0">
            <StackPanel>
                <gc:GaugeControl x:Name="gaugeControlX" Label="% X position"/>
                <gc:GaugeControl x:Name="gaugeControlY" Label="% Y position"/>
            </StackPanel>
        </Grid>
        <Grid Grid.Column="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="1.5*" />
                <RowDefinition Height="2*" />
            </Grid.RowDefinitions>
            <Rectangle x:Name="rectangle" Grid.Row="0" Stroke="Black" StrokeThickness="7" Margin="10" 
                       Fill="LightCyan" MouseMove="rectangle_MouseMove" MouseLeave="rectangle_MouseLeave"/>
            <TextBlock Text="Hover on me!" Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Center" 
                       FontSize="30" IsHitTestVisible="False" Margin="10"/>
            <Grid Grid.Row="1">
                <TextBlock Text="Options for bottom gauge control:" Margin="10,6,153,236" />
                <TextBox HorizontalAlignment="Left" Margin="117,28,0,0" Name="textBox1" Width="50" Text="{Binding ElementName=gaugeControlX, Path=StartAngle}" Height="23" VerticalAlignment="Top"/>
                <TextBox HorizontalAlignment="Left" Margin="257,25,0,0" Name="textBox2" Width="50" Text="{Binding ElementName=gaugeControlX, Path=EndAngle}" Height="23" VerticalAlignment="Top" />
                <TextBox HorizontalAlignment="Left" Margin="117,57,0,0" Name="textBox3" Text="{Binding ElementName=gaugeControlX, Path=Minimum}" Width="50" Height="23" VerticalAlignment="Top" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="257,54,0,0" Name="textBox4" Text="{Binding ElementName=gaugeControlX, Path=Maximum}" VerticalAlignment="Top" Width="50" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="117,86,0,0" Name="textBox5" Text="{Binding ElementName=gaugeControlX, Path=MajorStep}" VerticalAlignment="Top" Width="50" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="257,83,0,0" Name="textBox6" Text="{Binding ElementName=gaugeControlX, Path=MinorStep}" VerticalAlignment="Top" Width="50" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="117,115,0,0" Name="textBox7" Text="{Binding ElementName=gaugeControlX, Path=Label}" VerticalAlignment="Top" Width="50" />
                <TextBox Height="23" HorizontalAlignment="Left" Margin="257,112,0,0" Name="textBox8" Text="{Binding ElementName=gaugeControlX, Path=DefaultValue}" VerticalAlignment="Top" Width="50" />
                <Button Content="Pointer Fill" Height="23" HorizontalAlignment="Left" Margin="26,144,0,0" Name="btnPointerFill" VerticalAlignment="Top" Width="150" Click="btnPointerFill_Click" />
                <Button Content="Pointer Stroke" Height="23" HorizontalAlignment="Left" Margin="183,144,0,0" Name="btnPointerStroke" VerticalAlignment="Top" Width="150" Click="btnPointerStroke_Click" />
                <Button Content="Scale Stroke" Height="23" HorizontalAlignment="Left" Margin="26,173,0,0" Name="btnScaleStroke" VerticalAlignment="Top" Width="150" Click="btnScaleStroke_Click" />
                <Button Content="Scale Value Foreground" Height="23" HorizontalAlignment="Left" Margin="26,229,0,0" Name="btnScaleValueForeground" VerticalAlignment="Top" Width="150" Click="btnScaleValueForeground_Click" />
                <Button Content="Value Display Foreground" Height="23" HorizontalAlignment="Left" Margin="26,202,0,0" Name="btnValueDisplayForeground" VerticalAlignment="Top" Width="150" Click="btnValueDisplayForeground_Click" />
                <Button Content="Major Stamp Stroke" Height="23" HorizontalAlignment="Left" Margin="183,173,0,0" Name="btnMajorStampStroke" VerticalAlignment="Top" Width="150" Click="btnMajorStampStroke_Click" />
                <Button Content="Minor Stamp Stroke" Height="23" HorizontalAlignment="Left" Margin="183,202,0,0" Name="btnMinorStampStroke" VerticalAlignment="Top" Width="150" Click="btnMinorStampStroke_Click" />
                <TextBlock Height="23" HorizontalAlignment="Left" Margin="43,28,0,0" Text="Start angle:" VerticalAlignment="Top" />
                <TextBlock Height="23" HorizontalAlignment="Left" Margin="188,28,0,0" Text="End angle:" VerticalAlignment="Top" />
                <TextBlock Height="23" HorizontalAlignment="Left" Margin="43,57,0,0" Text="Minimum:" VerticalAlignment="Top" />
                <TextBlock Height="23" HorizontalAlignment="Left" Margin="188,57,0,0" Text="Maximum:" VerticalAlignment="Top" />
                <TextBlock Height="23" HorizontalAlignment="Left" Margin="43,86,0,0" Text="Major Step:" VerticalAlignment="Top" />
                <TextBlock Height="23" HorizontalAlignment="Left" Margin="188,86,0,0" Text="Minor Step:" VerticalAlignment="Top" />
                <TextBlock Height="23" HorizontalAlignment="Left" Margin="43,115,0,0" Text="Label:" VerticalAlignment="Top" Width="60" />
                <TextBlock Height="23" HorizontalAlignment="Left" Margin="188,115,0,0" Text="Default val:" VerticalAlignment="Top" Width="60" />
                <CheckBox Name="chbSnap" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="188,233,0,0" Content="Snap mode" IsChecked="{Binding Path=Snap, ElementName=gaugeControlX}" Width="145" />
                <CheckBox Content="Values Hrizontally" HorizontalAlignment="Left" IsChecked="{Binding Path=ValuesHorizontally, ElementName=gaugeControlX}" Margin="188,253,0,0" Name="checkBox1" VerticalAlignment="Top" Width="145" />
            </Grid>
        </Grid>
    </Grid>
</Window>
